﻿using Asp.Versioning;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Application.Dtos;

namespace Himp.TaskScheduling.V1
{
    [Area(TaskSchedulingRemoteServiceConsts.ModuleName)]
    [RemoteService(Name = TaskSchedulingRemoteServiceConsts.RemoteServiceName)]
    [Route("api/taskScheduling/codeConversion")]
    [ApiVersion("1.0")]
    [ApiController]
    [ControllerName("codeConversion")]
    public class CodeConversionController : TaskSchedulingController
    {
        private ICodeConversionService _codeConversionService;

        /// <summary>
        /// 
        /// </summary>
        /// <param name="paramConfigService"></param>
        public CodeConversionController(ICodeConversionService codeConversionService)
        {
            _codeConversionService = codeConversionService;
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        [HttpGet]
        [Route("list")]
        public async Task<PagedResultDto<CodeConversionDto>> GetListAsync([FromQuery] CodeConversionInput input)
        {
            return await _codeConversionService.GetListAsync(input);
        }
    }
}
